﻿<%@ control language="VB" autoeventwireup="false" inherits="controls_Calculadora, App_Web_vfbk0y9u" %>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<center>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
                                <table border="0" style="width: 90%" id="tblShowInfo" runat="server" visible="false">
                            <tr>
                                <td style="width: 33%" class="footerItem">
                                    <asp:Label ID="lblRemitenteL" runat="server" Text="Remitente" Font-Bold="True" ForeColor="white"></asp:Label></td>
                                <td style="width: 33%"  class="footerItem">
                                    <asp:Label ID="lblBebeficiarioL" runat="server" Text="Beneficiario" Font-Bold="True" ForeColor="white"></asp:Label></td>
                                <td style="width: 33%" align="center"  class="footerItem">
                                    <asp:Label ID="lblDatosGiroL" runat="server" Text="Datos del giro" Font-Bold="True" ForeColor="white"></asp:Label></td>
                            </tr>
                            <tr>
                                <td valign="top" id="TdCliente" runat="server" align="left" class="RightCellItems">
                                    </td>
                                <td valign="top" id="TdBenef" runat="server" align="left" class="RightCellItems">
                                    </td>
                                <td align="right" valign="top" class="RightCellItems">
                                    <table border="0" cellspacing="0" cellpadding="0" width="100%">
                                        <tr>
                                            <td>
                                                <asp:Label ID="lblNominalL" runat="server">Nominal:</asp:Label></td>
                                            <td align="right">
                                                <asp:Label ID="lblNominalD" runat="server"></asp:Label></td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="lblComisionL" runat="server">Comision:</asp:Label></td>
                                            <td align="right">
                                                <asp:Label ID="lblComisionD" runat="server"></asp:Label></td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="lblTotalL" runat="server" Font-Bold="True" ForeColor="Red">Total:</asp:Label></td>
                                            <td align="right">
                                                <asp:Label ID="lblTotalD" runat="server" Font-Bold="True" ForeColor="Red"></asp:Label></td>
                                        </tr>
                                        <tr>
                                            <td>
                                                <asp:Label ID="lblValorPagarL" runat="server" Font-Bold="True" ForeColor="Blue">Valor a pagar:</asp:Label></td>
                                            <td align="right">
                                                <asp:Label ID="lblValorPagarD" runat="server" Font-Bold="True" ForeColor="Blue"></asp:Label></td>
                                        </tr>
                                    </table>
                                    <asp:Label ID="lblNombreCorresponsal" runat="server" Font-Bold="True" ForeColor="Red"></asp:Label></td>
                            </tr>
                        </table>

            <table border="0" cellpadding="0" cellspacing="0" style="width: 90%" id="TblCalculadora"
                runat="server">
                <tr>
                    <td align="right" style="width: 100%">
                    </td>
                </tr>
                <tr>
                    <td style="width: 100%" align="right">
                        &nbsp;
                        <asp:Label ID="lblCalculadora" runat="server" Text="Calculadora" Font-Bold="True"></asp:Label></td>
                </tr>
                <tr>
                    <td style="width: 100%;">
                        <table border="0" id="TableOpts" cellspacing="0" cellpadding="0" width="100%" background="Img/top_nav_back.jpg">
                            <tr>
                                <td class="cellContent" style="height: 45px;">
                                    <table cellspacing="0" cellpadding="0" width="100%" border="0">
                                        <tr>
                                            <td style="height: 19px">
                                                <div class="cellContent" id="lblCobroEn" runat="server">
                                                    <strong>
                                                        <nobr>
                                                            <font color="white">Cobro en</font></nobr></strong></div>
                                            </td>
                                            <td style="height: 19px">
                                                <img height="1" src='<%= Page.ResolveUrl("~/img/spacer.gif") %>' width="8">
                                            </td>
                                            <td style="height: 19px">
                                                <div class="cellContent" id="PaisDestinolbl" runat="server">
                                                    <nobr>
                                                        <font color="white"><strong>Pais de destino</strong></font></nobr></div>
                                            </td>
                                            <td style="height: 19px">
                                                <img height="1" src='<%= Page.ResolveUrl("~/img/spacer.gif") %>' width="8">
                                            </td>
                                            <td style="height: 19px">
                                                <div class="cellContent" id="lblPagoEn" runat="server">
                                                    <strong>
                                                        <nobr>
                                                            <font color="white">Pago en</font></nobr></strong></div>
                                            </td>
                                            <td style="height: 19px">
                                                <img height="1" src='<%= Page.ResolveUrl("~/img/spacer.gif") %>' width="8">
                                            </td>
                                            <td style="height: 19px">
                                                <div class="cellContent" id="lblimporte" runat="server">
                                                    <strong>
                                                        <nobr>
                                                            <font color="white">Importe</font></nobr></strong></div>
                                            </td>
                                            <td style="height: 19px">
                                                <img height="1" src='<%= Page.ResolveUrl("~/img/spacer.gif") %>' width="8">
                                            </td>
                                            <td style="height: 19px">
                                                <div class="cellContent" id="lblOpciones" runat="server">
                                                    <nobr>
                                                        <strong><font color="white">Opciones</font></strong></nobr></div>
                                            </td>
                                            <td style="height: 19px">
                                                <img height="1" src='<%= Page.ResolveUrl("~/img/spacer.gif") %>' width="8">
                                            </td>
                                            <td style="height: 19px">
                                                <div class="cellContent" id="lblTipoDeGiro" runat="server">
                                                    <nobr>
                                                        <strong><font color="white">Tipo de Giro</font></strong></nobr></div>
                                            </td>
                                            <td style="height: 19px">
                                                &nbsp;</td>
                                        </tr>
                                        <tr>
                                            <td style="height: 24px">
                                                &nbsp;
                                                <asp:DropDownList ID="lsCobro" Width="100%" runat="server" CssClass="smalltextbox">
                                                </asp:DropDownList></td>
                                            <td style="height: 24px">
                                                <img height="1" src='<%= Page.ResolveUrl("~/img/spacer.gif") %>' width="8">
                                            </td>
                                            <td style="height: 24px">
                                                <asp:DropDownList ID="lsPais" Width="100%" runat="server" CssClass="smalltextbox">
                                                </asp:DropDownList></td>
                                            <td style="height: 24px">
                                                <img height="1" src='<%= Page.ResolveUrl("~/img/spacer.gif") %>' width="8">
                                            </td>
                                            <td style="height: 24px">
                                                <asp:DropDownList ID="lsPagoEn" Width="100%" runat="server" CssClass="smalltextbox">
                                                </asp:DropDownList></td>
                                            <td style="height: 24px">
                                                <img height="1" src='<%= Page.ResolveUrl("~/img/spacer.gif") %>' width="8">
                                            </td>
                                            <td style="height: 24px">
                                                <asp:TextBox ID="txtImporte" Style="text-align: center" Width="100%" runat="server"
                                                    CssClass="smalltextbox" Columns="4"></asp:TextBox></td>
                                            <td style="height: 24px">
                                                <img height="1" src='<%= Page.ResolveUrl("~/img/spacer.gif") %>' width="8">
                                            </td>
                                            <td style="height: 24px">
                                                <asp:DropDownList ID="lsOption" Width="100%" runat="server" CssClass="smalltextbox">
                                                </asp:DropDownList></td>
                                            <td style="height: 24px">
                                                <img height="1" src='<%= Page.ResolveUrl("~/img/spacer.gif") %>' width="8">
                                            </td>
                                            <td style="height: 24px">
                                                <asp:DropDownList ID="lsTipoGiro" Width="100%" runat="server" CssClass="smalltextbox">
                                                </asp:DropDownList></td>
                                            <td style="height: 24px">
                                                <img height="1" src='<%= Page.ResolveUrl("~/img/spacer.gif") %>' width="8">
                                            </td>
                                            <td style="height: 24px">
                                                <asp:LinkButton ID="btnCalcular" runat="server" CssClass="navanchordark"><STRONG><font color=white>Calcular</font></STRONG></asp:LinkButton></td>
                                        </tr>
                                    </table>
                                </td>
                                <td class="CellContent" width="20" style="height: 62px">
                                    <img id="ayudaItem" height="16" alt="Ayuda rapida sobre esta sección" src="~/img/i_help_bl_16.gif"
                                        width="16" border="0" runat="server"></A></td>
                            </tr>
                        </table>
                        &nbsp;
                        <asp:GridView ID="GVCalc" runat="server" Width="100%" AutoGenerateColumns="False"
                            CellPadding="4" ForeColor="#333333" GridLines="None" OnSelectedIndexChanged="GVCalc_SelectedIndexChanged">
                            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                            <Columns>
                                <asp:BoundField HeaderText="Corresponsal" DataField="NOMCorresponsal">
                                    <ItemStyle HorizontalAlign="Left" Font-Bold="True" />
                                    <HeaderStyle HorizontalAlign="Left" />
                                </asp:BoundField>
                                <asp:BoundField DataField="CambioNL" DataFormatString="{0:n4}" HeaderText="Cambio"
                                    HtmlEncode="False">
                                    <ItemStyle HorizontalAlign="Right" />
                                    <HeaderStyle HorizontalAlign="Right" />
                                </asp:BoundField>
                                <asp:BoundField DataField="ENVIADO" DataFormatString="{0:n2}" HeaderText="Nominal"
                                    HtmlEncode="False">
                                    <ItemStyle HorizontalAlign="Right" />
                                    <HeaderStyle HorizontalAlign="Right" />
                                </asp:BoundField>
                                <asp:BoundField DataField="CARGO" DataFormatString="{0:n2}" HeaderText="Cargo" HtmlEncode="False">
                                    <ItemStyle HorizontalAlign="Right" />
                                    <HeaderStyle HorizontalAlign="Right" />
                                </asp:BoundField>
                                <asp:BoundField DataField="Total" DataFormatString="{0:n2}" HeaderText="Total" HtmlEncode="False">
                                    <ItemStyle HorizontalAlign="Right" Font-Bold="True" />
                                    <HeaderStyle HorizontalAlign="Right" />
                                </asp:BoundField>
                                <asp:BoundField DataField="Entregar" DataFormatString="{0:n2}" HtmlEncode="False">
                                    <ItemStyle HorizontalAlign="Right" />
                                    <HeaderStyle HorizontalAlign="Right" />
                                </asp:BoundField>
                                <asp:BoundField DataField="NombreMonedaPago" HeaderText="En destino">
                                    <ItemStyle HorizontalAlign="Left" />
                                    <HeaderStyle HorizontalAlign="Left" />
                                </asp:BoundField>
                                <asp:TemplateField ShowHeader="False">
                                    <ItemStyle HorizontalAlign="Right" />
                                    <ItemTemplate>
                                        <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandArgument='<%# bind("CodCorresponsal") %>'
                                            CommandName="SelCorr" Text="Seleccionar"></asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                            <EditRowStyle BackColor="#999999" />
                            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" CssClass="HeadGV" />
                            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                        </asp:GridView>
                    </td>
                </tr>
                <tr>
                    <td style="width: 100%">
                        <asp:GridView ID="GvPP" runat="server" AutoGenerateColumns="False" CellPadding="0"
                            ForeColor="#333333" GridLines="None" Width="100%">
                            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                            <Columns>
                                <asp:BoundField DataField="OFDIreccion" HeaderText="Direccion">
                                    <ItemStyle HorizontalAlign="Left" />
                                    <HeaderStyle HorizontalAlign="Left" />
                                </asp:BoundField>
                                <asp:BoundField DataField="OFMasDatos" HeaderText="Mas datos">
                                    <ItemStyle HorizontalAlign="Left" />
                                    <HeaderStyle HorizontalAlign="Left" />
                                </asp:BoundField>
                                <asp:BoundField DataField="OfDelegacion" HeaderText="Observaciones">
                                    <ItemStyle HorizontalAlign="Left" />
                                    <HeaderStyle HorizontalAlign="Left" />
                                </asp:BoundField>
                                <asp:TemplateField ShowHeader="False">
                                    <ItemStyle HorizontalAlign="Right" />
                                    <ItemTemplate>
                                        <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Continuar"
                                            Text="Continuar" CommandArgument='<%# bind("OFId") %>'></asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                            <EditRowStyle BackColor="#999999" />
                            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" CssClass="HeadGV" />
                            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                        </asp:GridView>
                    </td>
                </tr>
                <tr>
                    <td style="width: 100%">
                        &nbsp;</td>
                </tr>
                <tr>
                    <td style="width: 100%">
                    </td>
                </tr>
            </table>
            <br />
            <table border="0" cellpadding="0" cellspacing="0" id="tblConfirma" runat="server"
                visible="false" width="90%">
                <tr>
                    <td style="width: 100%; height: 19px;" class="footerItem">
                        <asp:Label ID="Label2" runat="server" Font-Bold="True" ForeColor="white" Text="Confirmar los datos de la operacion"></asp:Label></td>
                </tr>
                <tr>
                    <td style="width: 100%">
                        <asp:Label ID="Label3" runat="server" Text="Por favor, verifique que estos datos sean correctos, si no lo son puede regresar y corregir cualquiera de ellos, además puede incluir un mensaje para el beneficiario y una observación de la Operación en curso, si elige grabar, será cursada en su totalidad la Operación actual." ForeColor="Red"></asp:Label></td>
                </tr>
                <tr valign="top" align="center">
                    <td style="width: 100%">
                    </td>
                </tr>
                <tr>
                    <td style="width: 100%">
                        <table width="100%" border="0" cellpadding="0" cellspacing="0">
                            <tr>
                                <td align="left">
                                    <asp:Label ID="Label4" runat="server" Text="Mensaje del remitente al beneficiario:"></asp:Label></td>
                                <td align="left">
                                    <asp:TextBox ID="txtMensaje" runat="server" Width="98%" MaxLength="80"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td align="left">
                                    <asp:Label ID="Label5" runat="server" Text="Observaciones de esta operacion:"></asp:Label></td>
                                <td align="left">
                                    <asp:TextBox ID="txtObservaciones" runat="server" Width="98%" MaxLength="80"></asp:TextBox></td>
                            </tr>
                            <tr>
                                <td align="left">
                                    <asp:Label ID="Label7" runat="server" Text="Modo de pago:"></asp:Label></td>
                                <td align="left">
                                    <table width="100%">
                                        <tr>
                                            <td align="left">
                                    <asp:DropDownList ID="cmbModoPago" runat="server" AutoPostBack="True" OnSelectedIndexChanged="cmbModoPago_SelectedIndexChanged">
                                    </asp:DropDownList></td>
                                            <td align="right">
                                    <asp:Label ID="Label6" runat="server" Text="Concepto:"></asp:Label></td>
                                            <td>
                                    <asp:DropDownList ID="cmbConcepto" runat="server">
                                    </asp:DropDownList></td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td align="left">
                                    </td>
                                <td align="left">
                                    &nbsp;</td>
                            </tr>
                            <tr>
                                <td align="left">
                                </td>
                                <td align="left">
                                    <asp:GridView ID="GvCuenta" runat="server" AutoGenerateColumns="False" CellPadding="3" ForeColor="#333333" GridLines="None" Width="100%" OnSelectedIndexChanged="GvCuenta_SelectedIndexChanged">
                            <Columns>
                                <asp:TemplateField HeaderText="Banco">
                                    <EditItemTemplate>
                                        <asp:TextBox ID="TextBox1" runat="server" Text='<%# Bind("cb_Id") %>'></asp:TextBox>
                                    </EditItemTemplate>
                                    <ItemTemplate>
                                        &nbsp;<asp:CheckBox ID="CK" runat="server" Text='<%# Bind("cb_Banco") %>' />
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:BoundField DataField="cb_Sucursal" HeaderText="Sucursal" >
                                    <ItemStyle HorizontalAlign="Left" />
                                </asp:BoundField>
                                <asp:BoundField DataField="cb_CiudadSucursal" HeaderText="Ciudad" >
                                    <ItemStyle HorizontalAlign="Left" />
                                </asp:BoundField>
                                <asp:BoundField DataField="cb_TipoCuenta" HeaderText="Tipo cuenta" >
                                    <ItemStyle HorizontalAlign="Left" />
                                </asp:BoundField>
                                <asp:BoundField DataField="cb_Cuenta" HeaderText="Cuenta" >
                                    <ItemStyle HorizontalAlign="Left" />
                                </asp:BoundField>
                                <asp:BoundField DataField="cb_ID" HeaderText="ID" />
                            </Columns>
                            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                            <EditRowStyle BackColor="#999999" />
                            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                        </asp:GridView>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
                <tr id="trListaCuentas" runat="server">
                    <td style="width: 100%;" class="footerItem" align="right">
                        <asp:Button ID="cmdCancelar" runat="server" Text="Cancelar" CssClass="Butt" OnClick="cmdCancelar_Click"/>
                        <asp:Button ID="cmdVolver" runat="server" OnClick="cmdVolver_Click" Text="Volver" CssClass="Butt" />
                        <asp:Button ID="cmdGrabar" runat="server" OnClick="cmdGrabar_Click" Text="Enviar e imprimir" CssClass="Butt"/>
                        </td>
                </tr>
                <tr>
                    <td style="width: 100%">
                    </td>
                </tr>
                <tr>
                    <td style="width: 100%">
                    </td>
                </tr>
            </table>
                        <asp:Label ID="lblError" runat="server" BackColor="Red" Font-Bold="True" ForeColor="White"
                            Visible="False"></asp:Label>&nbsp;
        </ContentTemplate>
    </asp:UpdatePanel>
</center>
<center>
    <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1"
    DisplayAfter="0">
    <ProgressTemplate>
        <img src="img/ProgressBar3.gif" align="middle" />
    </ProgressTemplate>
</asp:UpdateProgress>
    &nbsp; &nbsp; &nbsp;
</center>